package com.yunqiao.service.api.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 车辆类型
 *
 * @author Crocutax
 * @email wangxw725@163.com
 * @date 2019-03-03 21:58:45
 */
@TableName("tb_car_type")
@Data
@ApiModel(value = "车辆类型对象")
public class CarTypeEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     *
     */
    @TableId
    @ApiModelProperty(value = "", hidden = false)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;
    /**
     * 汽车载重
     */
    @ApiModelProperty(value = "汽车载重")
    private Double carload;
    /**
     * 名称
     */
    @ApiModelProperty(value = "名称")
    private String name;
    /**
     * 1:没有单双排，2有
     */
    @ApiModelProperty(value = "1:没有单双排，2有")
    private Integer isSeat;
    /**
     * 图片
     */
    @ApiModelProperty(value = "图片")
    private String img;
    /**
     * 长宽高
     */
    @ApiModelProperty(value = "长宽高")
    private String specification;
    /**
     * 载货体积,单位:方
     */
    @ApiModelProperty(value = "载货体积,单位:方")
    private Double volume;
    /**
     * 1单排 2双排
     */
    @ApiModelProperty(value = "1单排 2双排")
    private Integer seat;
    /**
     * 起步价
     */
    @ApiModelProperty(value = "起步价")
    private BigDecimal priceInit;
    /**
     * 起步公里数
     */
    @ApiModelProperty(value = "起步公里数")
    private Integer distanceInit;
    /**
     * 超出后每公里价格
     */
    @ApiModelProperty(value = "超出后每公里价格")
    private BigDecimal pricePerKilometre;
    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间", hidden = true)
    private Date createTime;
    /**
     * 更新时间
     */
    @ApiModelProperty(value = "更新时间", hidden = true)
    private Date updateTime;
    /**
     * 软删除
     */
    @TableLogic
    @JsonIgnore
    @ApiModelProperty(value = "软删除", hidden = true)
    private Integer deleted;

}
